package com.springcloud.client.modules.service;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * @FeignClient(value=注册中心提供服务的名称,fallback=实现本接口的异常类)
 * @author Administrator
 *
 */
@FeignClient(value="service-server",fallback=SchedualServiceHiHystrix.class)
public interface FeignService {

	/**
	 * 最好写上@RequestParam注解,因为版本问题导致值取不到
	 * @param name
	 * @return
	 */
	@RequestMapping("/hi")
	public String hi(@RequestParam("name")String name);

}
